package com.lp.mgt.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lp.mgt.commons.CustomResult;

@Controller
@RequestMapping("/exception")
public class ExceptionCtr {
	
	@RequestMapping("/returnException")
	@ResponseBody
	public CustomResult returnException(String code,String msg){
		return new CustomResult().success(false, code, msg);
	}
}
